package com.settlement.system.service;

import com.settlement.system.common.exception.ServiceException;
import com.settlement.system.model.entity.common.TblReceiveRefundSupplier;
import org.springframework.cache.annotation.Cacheable;

import java.util.List;

/**
 * 收退款-供应商 服务类
 * @author Ximi
 * @since 2020-06-18
 */

public interface ITblReceiveRefundSupplierService extends IBaseService {

    /**
     * getByAccountBookShortNameAndSupplierName
     * @param accountBookShortName
     * @param supplierName
     * @return
     * @throws ServiceException
     */
    @Cacheable(value = "getByAccountBookShortNameAndSupplierName")
    public TblReceiveRefundSupplier getByAccountBookShortNameAndSupplierName(
            String accountBookShortName, String supplierName) throws ServiceException;

    /**
     * 根据NC供应商档案获取列表
     * @param ncSupplierRecord
     * @return
     */
    List<TblReceiveRefundSupplier> selectByNcSupplierRecord(String ncSupplierRecord);
}

